#include"Heap.h"

int main()
{
	int a[] = { 12, 30, 45, 8, 15, 60, 80 };
	Heap heaptest;
	HeapInit(&heaptest);
	for (int i = 0; i < sizeof(a) / sizeof(int); ++i)
	{
		HeapPush(&heaptest, a[i]);
	}
	while (!HeapEmpty(&heaptest))
	{
		printf("%d ", HeapTop(&heaptest));
		HeapPop(&heaptest);
	}
	return 0;
}